﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Text;
using WebServer.Biz;
using WebServer.Models;

namespace WebServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“Article”。
    // 注意: 为了启动 WCF 测试客户端以测试此服务，请在解决方案资源管理器中选择 Article.svc 或 Article.svc.cs，然后开始调试。
     [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Article : IArticle
    {
        #region 分类逻辑
        /// <summary>
        /// 获取分类
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
         public List<NewsCate> Cate(int ID, bool IsDel)
        {
            List<NewsCate> request = new List<NewsCate>();
            request = new ArticleBiz().Cate(ID, IsDel);
            return request;
        }


         /// <summary>
         /// 获取存在交易所
         /// </summary>
         /// <returns></returns>
         public List<NewsCate> CateGroup(int Parent, int CenterID)
         {
             List<NewsCate> request = new List<NewsCate>();
             request = new ArticleBiz().CateGroup(Parent, CenterID);
             return request;
         }

        /// <summary>
        /// 获取分类
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
         public NewsCate CateByID(int ID)
        {
            NewsCate request = new NewsCate();
            request = new ArticleBiz().CateByID(ID);
            return request;
        }

        /// <summary>
        /// 创建分类
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="ParentID"></param>
        /// <returns></returns>
        public bool CateCreate(string Name, int ParentID)
        {
            bool request = false;
            request = new ArticleBiz().CateCreate(Name, ParentID);
            return request;
        }

        /// <summary>
        /// 更新分类
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public bool CateSet(int ID, string Name, int Parent, bool IsDel)
        {
            bool request = false;
            request = new ArticleBiz().CateSet(ID, Name, Parent, IsDel);
            return request;
        }

        /// <summary>
        /// 获取所有的子分类 
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<NewsCate> ManCate(bool IsDel)
        {
            List<NewsCate> request = new List<NewsCate>();
            request = new ArticleBiz().ManCate(IsDel);
            return request;
        }

        /// <summary>
        /// 获取判断是否有子节点的分类
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<NewsCate> CateList(int ID, bool IsDel)
        {
            List<NewsCate> request = new List<NewsCate>();
            request = ArticleBiz.CateList(ID, IsDel);
            return request;
        }
        #endregion

        #region 文章处理



        /// <summary>
        /// 获取文章详情
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Article ArticleByID(int ID)
        {
            Article request = new Article();
            request = new ArticleBiz().ArticleByID(ID);
            if (!string.IsNullOrEmpty(request.Text))
            {
                if (request.Text != "")
                {
                    request.Text = System.Web.HttpUtility.HtmlDecode(request.Text);
                }
            }
            return request;
        }

        /// <summary>
        /// 文章排行获取-不包含评论
        /// </summary>
        /// <param name="CateID"></param>
        /// <param name="Size"></param>
        /// <param name="Field"></param>
        /// <param name="Sort">默认根据点击排序，1-修改时间</param>
        /// <returns></returns>
        public List<Article> ArticleBySort(int CateID, int Size, int Sort, bool Desc)
        {
            List<Article> request = new List<Article>();
            request = new ArticleBiz().ArticleBySort(CateID, Size, Sort, Desc);
            return request;
        }

        /// <summary>
        /// 文章列表
        /// </summary>
        /// <param name="CateID"></param>
        /// <param name="Page"></param>
        /// <param name="PageSize"></param>
        /// <param name="BourseName"></param>
        /// <param name="IsHEadLine"></param>
        /// <param name="HasImg"></param>
        /// <returns></returns>
        public List<Article> ArticleList(int CateID, int Page, int PageSize, int CenterID, string Code, bool HasImg, bool Stick, bool IsDel)
        {
            List<Article> request = new List<Article>();
            request = new ArticleBiz().ArticleList(CateID, Page, PageSize, CenterID, Code, HasImg, Stick, IsDel);
            return request;
        }


        /// <summary>
        /// 手机查询百科
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public List<Article> PArticleList(int CateID, string OpenTime, string EndTime, int PageSize, int CenterID, string Code, string Title, bool HasImg, int Stick, int Order, bool Desc, int IsDel)
        {
            List<Article> request = new List<Article>();
            request = new ArticleBiz().PArticleList(CateID, OpenTime, EndTime, PageSize, CenterID, Code, Title, HasImg, Stick, Order, Desc, IsDel);
            return request;
        }

        /// <summary>
        /// 百科总数
        /// </summary>
        /// <param name="CateID"></param>
        /// <param name="CenterID"></param>
        /// <param name="Code"></param>
        /// <param name="Title"></param>
        /// <param name="HasImg"></param>
        /// <param name="Stick"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public int MArticleCount(int CateID, int CenterID, string Code, string Title, bool HasImg, int Stick, int IsDel)
        {
            int result = 0;
            result = ArticleBiz.MArticleCount(CateID, CenterID, Code, Title, HasImg, Stick, IsDel);
            return result;
        }

        /// <summary>
        /// 可以模糊查询百科
        /// </summary>
        /// <param name="Order">默认为创建时间，1-标题，2-点击率3-交易所，4-回复数</param>
        /// <param name="IsStick">0-不置顶，1-置顶，-1代表全部</param>
        /// <param name="IsDel">0-未删除，1-已删除，-1代表全部</param>
        /// <returns></returns>
        public List<Article> MArticleList(int CateID, int Page, int PageSize, int CenterID, string Code, string Title, bool HasImg, int Stick, int Order, bool Desc, int IsDel)
        {
            List<Article> request = new List<Article>();
            request = new ArticleBiz().MArticleList(CateID, Page, PageSize, CenterID, Code, Title, HasImg, Stick, Order, Desc, IsDel);
            return request;
        }

        /// <summary>
        /// 文章动作
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public bool ArticleAction(int ID, string Filed, bool Fn)
        {
            bool request = false;

            if (!string.IsNullOrEmpty(Filed))
            {
                if (Filed == "IsHeadline" || Filed == "Stick" || Filed == "Commend" || Filed == "IsDel")
                {
                    request = new ArticleBiz().ArticleAction(ID, Filed, Fn);
                }
            }
            return request;
        }


        /// <summary>
        /// 新增以及更新文章
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public bool ArticleSet(Article N)
        {
            bool request = false;
            if (!string.IsNullOrEmpty(N.Text))
            {
                if (N.Text != "")
                {
                    //N.Text = System.Web.HttpUtility.HtmlEncode(N.Text);
                }
            }
            request = new ArticleBiz().ArticleSet(N);
            return request;
        }


        #endregion

        #region 广告
        /// <summary>
        /// 广告列表
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="Page"></param>
        /// <param name="Name"></param>
        /// <param name="Type"></param>
        /// <param name="Img"></param>
        /// <param name="Url"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="Dtlimit"></param>
        /// <param name="Order">默认根据rank排序，1-ID，2-开始时间，3-结束时间</param>
        /// <param name="Desc"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<WebAd> AdSearch(int PageSize, int Page, string Name, string Type, string Img, string Url, int Rank, string Place, DateTime Dtlimit, int AppOrWeb, int Order, bool Desc, bool IsDel)
        {
            List<WebAd> result = new List<WebAd>();

            result = ArticleBiz.AdSearch(PageSize, Page, Name, Type, Img, Url, Rank, Place, Dtlimit,AppOrWeb, Order, Desc, IsDel);
            return result;
        }


        /// <summary>
        /// 广告列表-区分是否过期
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="Page"></param>
        /// <param name="Type"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="IsOverdue"></param>
        /// <param name="Order"></param>
        /// <param name="Desc"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<WebAd> AdList(int PageSize, int Page, string Type, int Rank, string Place, int IsOverdue, int AppOrWeb, int Order, bool Desc, bool IsDel)
        {
            List<WebAd> result = new List<WebAd>();

            result = ArticleBiz.AdList(PageSize, Page, Type, Rank, Place, IsOverdue, AppOrWeb, Order, Desc, IsDel);
            return result;
        }


        /// <summary>
        /// 广告列表-区分是否过期
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="Page"></param>
        /// <param name="Type"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="IsOverdue"></param>
        /// <param name="Order"></param>
        /// <param name="Desc"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<WebAd> MAdList(int PageSize, int Page, string Type, int Rank, string Place, string Keys, int IsOverdue, int AppOrWeb, int Order, bool Desc, bool IsDel)
        {
            List<WebAd> result = new List<WebAd>();

            result = ArticleBiz.MAdList(PageSize, Page, Type, Rank, Place, Keys, IsOverdue, AppOrWeb, Order, Desc, IsDel);
            return result;
        }


        /// <summary>
        /// 广告总数-区分是否过期
        /// </summary>
        /// <param name="Type"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="IsOverdue"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public int AdCount(string Type, int Rank, string Place, string Keys, int IsOverdue, int AppOrWeb, bool IsDel)
        {
            int result = 0;
            result = ArticleBiz.AdCount(Type, Rank, Place, Keys, IsOverdue, AppOrWeb, IsDel);
            return result;
        }


        /// <summary>
        /// 删除广告
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public int DelAd(int ID)
        {
            int result = 0;
            result = ArticleBiz.DelAd(ID);
            return result;
        }


        /// <summary>
        /// 新增或者修改幻灯片
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int AddOrUpAd(WebAd model)
        {
            int result = 0;
            result = ArticleBiz.AddOrUpAd(model);
            return result;
        }

        /// <summary>
        /// 根据ID获取幻灯片
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public WebAd AdByID(int ID)
        {
            WebAd entity = new WebAd();
            entity = ArticleBiz.AdByID(ID);
            return entity;
        }
        #endregion


        #region 手机广告
        /// <summary>
        /// 广告列表
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="Page"></param>
        /// <param name="Name"></param>
        /// <param name="Type"></param>
        /// <param name="Img"></param>
        /// <param name="Url"></param>       
        /// <param name="Place"></param>      
        /// <param name="Order">默认根据ID排序，1-Place</param>
        /// <param name="Desc"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<APPAd> PAdSearch(int PageSize, int Page, string Img, string Type, string Name, string Place, int Order, bool Desc, bool IsDel)
        {
            List<APPAd> result = new List<APPAd>();

            result = ArticleBiz.PAdSearch(PageSize, Page, Img, Type, Name, Place, Order, Desc, IsDel);
            return result;
        }

        /// <summary>
        /// 广告总数-区分是否过期
        /// </summary>
        /// <param name="Type"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="IsOverdue"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public int PAdCount(string Img, string Type, string Name, string Place, bool IsDel)
        {
            int result = 0;
            result = ArticleBiz.PAdCount(Img, Type, Name, Place, IsDel);
            return result;
        }



        /// <summary>
        /// 删除广告
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public int PDelAd(int ID)
        {
            int result = 0;
            result = ArticleBiz.PDelAd(ID);
            return result;
        }


        /// <summary>
        /// 新增或者修改幻灯片
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int PAddOrUpAd(APPAd model)
        {
            int result = 0;

            model.Name = model.Name == "" ? "" : Common.SpecialKey(model.Name);
            model.Text = model.Text == "" ? "" : Common.SpecialKey(model.Text);

            result = ArticleBiz.PAddOrUpAd(model);
            return result;
        }

        /// <summary>
        /// 根据ID获取幻灯片
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public APPAd PAdByID(int ID)
        {
            APPAd entity = new APPAd();
            entity = ArticleBiz.PAdByID(ID);
            return entity;
        }
        #endregion


        #region 特殊页面
        /// <summary>
        /// 特殊页面列表-区分是否过期
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="Page"></param>
        /// <param name="Type"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="IsOverdue"></param>
        /// <param name="Order"></param>
        /// <param name="Desc"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<SpecialPage> SpecialPageList(int PageSize, int Page, string Name, int Order, bool Desc, bool IsDel)
        {
            List<SpecialPage> result = new List<SpecialPage>();

            result = ArticleBiz.SpecialPageList(PageSize, Page, Name, Order, Desc, IsDel);
            return result;
        }


        /// <summary>
        /// 特殊页面列表-区分是否过期
        /// </summary>
        /// <param name="Type"></param>
        /// <param name="Rank"></param>
        /// <param name="Place"></param>
        /// <param name="IsOverdue"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public int SpecialCount(string Name, bool IsDel)
        {
            int result = 0;
            result = ArticleBiz.SpecialCount(Name, IsDel);
            return result;
        }


        /// <summary>
        /// 删除特殊特殊页面
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public int DelSpecial(int ID)
        {
            int result = 0;
            result = ArticleBiz.DelSpecial(ID);
            return result;
        }

        /// <summary>
        /// 新增或者修改特殊页面
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int AddOrUpSpecial(SpecialPage model)
        {
            int result = 0;
            result = ArticleBiz.AddOrUpSpecial(model);
            return result;
        }

        /// <summary>
        /// 根据ID获取特殊页面
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public SpecialPage SpecialByID(int ID)
        {
            SpecialPage entity = new SpecialPage();
            entity = ArticleBiz.SpecialByID(ID);
            return entity;
        }
        #endregion

        #region 申购日历

        /// <summary>
        /// 申购月份数据
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<Purchase> MPurchaseList(int PageSize, int PageIndex, int CenterID, int Year, int Month, string Cate, int Order, bool Desc)
        {
            List<Purchase> request = new List<Purchase>();
            request = new ArticleBiz().MPurchaseList(PageSize, PageIndex, CenterID, Year, Month, Cate, Order, Desc);
            return request;
        }


        /// <summary>
        /// 申购月份数据
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<Purchase> PurchaseList(int PageSize, int PageIndex, int CenterID, int Year, int Month, int Order, bool Desc)
        {
            List<Purchase> request = new List<Purchase>();
            request = new ArticleBiz().PurchaseList(PageSize, PageIndex, CenterID, Year, Month, Order, Desc);
            return request;
        }

        /// <summary>
        /// 获取申购日历总数
        /// </summary>
        /// <param name="CenterID"></param>
        /// <param name="BeginTime"></param>
        /// <param name="EndTime"></param>
        /// <returns></returns>
        public int PurchaseCount(int CenterID, int Year, int Month, string Cate)
        {
            int result = 0;
            result = new ArticleBiz().PurchaseCount(CenterID, Year, Month, Cate);
            return result;
        }

        /// <summary>
        /// 申购月份统计
        /// </summary>
        /// <param name="Year"></param>
        /// <param name="Month"></param>
        /// <returns></returns>
        public List<PurchaseTotalEntity> PurchaseTotal(int Year, int Month)
        {
            List<PurchaseTotalEntity> request = new List<PurchaseTotalEntity>();
            request = new ArticleBiz().PurchaseTotal(Year, Month);
            return request;
        }
        /// <summary>
        /// 申购月份数据
        /// </summary>
        /// <param name="Year"></param>
        /// <param name="Month"></param>
        /// <returns></returns>
        public List<Purchase> Purchase(int Year, int Month)
        {
            List<Purchase> request = new List<Purchase>();
            request = new ArticleBiz().Purchase(Year, Month);
            return request;
        }


        /// <summary>
        /// 申购月份数据【补齐】
        /// </summary>
        /// <param name="Year"></param>
        /// <param name="Month"></param>
        /// <returns></returns>
        public List<Purchase> PurchasePolish(int Year, int Month, bool polish)
        {
            List<Purchase> request = new List<Purchase>();
            request = new ArticleBiz().PurchasePolish(Year, Month, polish);
            return request;
        }

        /// <summary>
        /// 申购月份数据
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="IsDel"></param>
        /// <returns></returns>
        public List<Purchase> PurchaseNewsTwo(int Year, int Month, string CateName)
        {
            List<Purchase> request = new List<Purchase>();
            request = new ArticleBiz().PurchaseNewsTwo(Year, Month, CateName);
            return request;
        }


        /// <summary>
        /// 可以申购的
        /// </summary>
        /// <param name="Year"></param>
        /// <param name="Month"></param>
        /// <returns></returns>
        public List<Purchase> PurchaseNews(string CateName)
        {
            List<Purchase> request = new List<Purchase>();
            request = new ArticleBiz().PurchaseNews(CateName);
            return request;
        }
        /// <summary>
        /// 申购数据
        /// </summary>
        /// <param name="Year"></param>
        /// <param name="Month"></param>
        /// <returns></returns>
        public Purchase PurchaseByID(int ID)
        {
            Purchase request = new Purchase();
            request = new ArticleBiz().PurchaseByID(ID);
            return request;
        }

        /// <summary>
        /// 添加或修改投资日历
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public int PurchaseSet(Purchase entity)
        {
            int result = 0;
            result = ArticleBiz.PurchaseSet(entity);
            return result;
        }

        /// <summary>
        /// 删除申购日历
        /// </summary>
        /// <param name="ID">邮吧ID</param>
        /// <param name="Filed">列名</param>
        /// <param name="Fn">值</param>
        /// <returns></returns>
        public int PurchaseAction(int ID, string Filed, bool Fn)
        {
            int result = 0;
            result = ArticleBiz.PurchaseAction(ID, Filed, Fn);
            return result;
        }


        /// <summary>
        /// 改藏品的总申购资金 单签资金 单签持仓
        /// </summary>
        /// <returns></returns>
        public int PurchaseListed(PurchaseListed entity)
        {
            int result = 0;
            result = new ArticleBiz().PurchaseListed(entity);
            return result;
        }


        /// <summary>
        /// 获取藏品的总申购资金 单签资金 单签持仓
        /// </summary>
        /// <returns></returns>
        public PurchaseListed PurchaseListedByID(int ID)
        {
            PurchaseListed entity = new PurchaseListed();
            entity = new ArticleBiz().PurchaseListedByID(ID);
            return entity;
        }




        /// <summary>
        /// 手機查詢打新助手
        /// </summary>
        /// <param name="OpenTime"></param>
        /// <returns></returns>
        public List<PpurchaseTotalEntity> PPurchaseTotal(DateTime OpenTime)
        {
            List<PpurchaseTotalEntity> request = new List<PpurchaseTotalEntity>();
            request = ArticleBiz.PPurchaseTotal(OpenTime);
            return request;

        }
        #endregion

        #region 新闻专题
        /// <summary>
        /// 新闻专题查询
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Project ProjectByID(int ID)
        {
            Project request = new Project();
            request = ArticleBiz.ProjectByID(ID);
            return request;
        }
        /// <summary>
        /// 新闻列表
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public List<News> ProjectNewsByID(int PID)
        {
            List<News> request = new List<News>();
            request = ArticleBiz.ProjectNewsByID(PID);
            return request;
        }

        /// <summary>
        /// 添加专题
        /// </summary>
        /// <param name="Entity"></param>
        /// <returns></returns>
        public int AddProject(Project Entity)
        {
            int result = 0;
            result = new ArticleBiz().AddProject(Entity);
            return result;
        }

         /// <summary>
         /// 专题列表
         /// </summary>
         /// <param name="PageSize"></param>
         /// <param name="PageIndex"></param>
         /// <param name="OrderID"></param>
         /// <param name="Desc"></param>
         /// <returns></returns>
        public List<Project> ProjectList(int PageSize, int PageIndex, int OrderID, bool Desc, bool IsDel)
        {
            List<Project> request = new List<Project>();
            request = new ArticleBiz().ProjectList(PageSize, PageIndex, OrderID, Desc, IsDel);
            return request;
        }

        /// <summary>
        /// 专题列表-第一个新闻的图片
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <param name="OrderID"></param>
        /// <param name="Desc"></param>
        /// <returns></returns>
        public List<Project> ProjectListImg(int PageSize, int PageIndex, int OrderID, bool Desc, bool IsDel)
        {

            List<Project> request = new List<Project>();
            request = new ArticleBiz().ProjectListImg(PageSize, PageIndex, OrderID, Desc, IsDel);
            return request;
        }
         /// <summary>
         /// 专题总数
         /// </summary>
         /// <returns></returns>
        public int ProjectCount(bool IsDel)
        {
            int result = 0;
            result = new ArticleBiz().ProjectCount(IsDel);
            return result;
        }

        /// <summary>
        /// 添加或取消新闻
        /// </summary>
        /// <returns></returns>
        public int PNewsSet(int ID, int PID, int NewID, int Sort)
        {
            int result = 0;
            result = new ArticleBiz().PNewsSet(ID, PID, NewID, Sort);
            return result;
        }


        /// <summary>
        /// 添加或修改幻灯片
        /// </summary>
        /// <returns></returns>
        public int PSildeSet(ProjectSilder entity)
        {
            int result = 0;
            result = new ArticleBiz().PSildeSet(entity);
            return result;
        }

        /// <summary>
        /// 根据ID获取专题幻灯片
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public ProjectSilder SildeByID(int ID)
        {
            ProjectSilder request = new ProjectSilder();
            request = new ArticleBiz().SildeByID(ID);
            return request;
        }


        /// <summary>
        /// shanchu 幻灯片
        /// </summary>
        /// <returns></returns>
        public int DelPSilde(int ID)
        {
            int result = 0;
            result = new ArticleBiz().DelPSilde(ID);
            return result;
        }


        /// <summary>
        /// 新闻专题查询
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public List<ProjectSilder> ProjectSilder(int ID)
        {
            List<ProjectSilder> request = new List<ProjectSilder>();
            request = ArticleBiz.ProjectSilder(ID);
            return request;
        }


        /// <summary>
        /// 时间戳专题查询
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public List<ProjectTimeEntity> ProjectTimeByPID(int ID)
        {
            List<ProjectTimeEntity> request = new List<ProjectTimeEntity>();
            request = ArticleBiz.ProjectTimeByPID(ID);
            return request;
        }




        /// <summary>
        /// shanchu时间戳
        /// </summary>
        /// <returns></returns>
        public int DelPTime(int ID)
        {
            int result = 0;
            result = new ArticleBiz().DelPTime(ID);
            return result;
        }

        /// <summary>
        /// 根据Id获取时间戳
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public ProjectTimeEntity PTimeByID(int ID)
        {
            ProjectTimeEntity request = new ProjectTimeEntity();
            request = new ArticleBiz().PTimeByID(ID);
            return request;
        }


        /// <summary>
        /// 添加或修改时间戳
        /// </summary>
        /// <returns></returns>
        public int PTimeSet(ProjectTimeEntity entity)
        {
            int result = 0;
            result = new ArticleBiz().PTimeSet(entity);
            return result;
        }



        /// <summary>
        /// 删除专题
        /// </summary>
        /// <returns></returns>
        public int ProjectD(int ID)
        {

            int result = 0;
            result = new ArticleBiz().ProjectD(ID);
            return result;
        }
        #endregion
    }
}
